package net.herrialde.geo.bean;

import org.json.JSONException;
import org.json.JSONObject;

public class Probintzia {

	protected int id;
	protected int parentId;
	protected String name;
	
	public Probintzia() {
		super();
	}
	
	public Probintzia(JSONObject obj) throws JSONException {
		id = obj.getInt("provinciaId");
		parentId = obj.getInt("comunidadId");
		name = obj.getString("nombreEu");
	}
	
	
	public void setId(int id) {
		this.id = id;
	}

	public void setParentId(int parentId) {
		this.parentId = parentId;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getId() {
		return id;
	}
	public int getParentId() {
		return parentId;
	}
	public String getName() {
		return name;
	}
	
}
